{
  "position": "top",
  "height": 34,
  "spacing": 0,
  "modules-left": ["custom/swaync", "clock", "sway/workspaces", "sway/scratchpad", "sway/mode"],
  "modules-center": ["sway/window"],
  "modules-right": ["tray", "custom/backlight", "idle_inhibitor", "network", "pulseaudio", "battery"],

  "custom/backlight": {
    "format": "󰈉",
    "on-click": "sh ~/.config/waybar/custom.backlight.sh"
  },
  "custom/swaync": {
    "format": "{icon}",
    "format-icons": {
      "notification": "!",
      "none": "",
      "dnd-notification": "󰍶",
      "dnd-none": "󰍶",
    },
    "return-type": "json",
    "exec-if": "which swaync-client",
    "exec": "swaync-client -swb",
    "on-click": "swaync-client -t -sw",
    "on-click-right": "swaync-client -d -sw",
    "escape": true
  },
  "sway/window": {
    "rewrite": {
      "": "~"
    }
  },
  "sway/scratchpad": {
    "format": "{icon} {count}",
    "show-empty": false,
    "format-icons": ["", "󰕜 "],
    "tooltip": true,
    "tooltip-format": "{app}: {title}"
  },
  "idle_inhibitor": {
    "format": "{icon}",
    "format-icons": {
      "activated": " 󰅶",
      "deactivated": "󰾪"
    }
  },
  "clock": {
  	"format": "{:%H:%M}",
    "format-alt": "{:%a, %b %e - %H:%M:%S}",
    "tooltip-format": "<tt><small>{calendar}</small></tt>",
      "calendar": {
        "mode": "year",
        "mode-mon-col": 3,
        "weeks-pos": "right",
        "on-scroll": 1,
        "on-click-right": "mode",
          "format": {
            "months": "<span color='#ffead3'><b>{}</b></span>",
            "days": "<span color='#ecc6d9'><b>{}</b></span>",
            "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
            "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
            "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
          },
      },
  },
  "battery": {
    "states": {
	    "full": 96,
      "critical": 11
      },
    "format": "{icon} {capacity}%",
    "format-charging": "󰂄 {capacity}%",
    "format-plugged": "󰂄 {capacity}%",
    "format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
  },
  "network": {
    "format-wifi": "{icon}",
    "format-ethernet": "󰈀",
    "tooltip-format": "Connected: {essid} via {ifname} {signalStrength}%",
    "format-disconnected": "󱔑",
    "format-icons": ["󰤯", "󰤟", "󰤢", "󰤥", "󰤨"],
  },
  "pulseaudio": {
    "format": "{icon} {volume}%",
	  "on-click": "pactl set-sink-mute alsa_output.pci-0000_04_00.6.analog-stereo toggle",
    "format-bluetooth": "󰂯 {volume}%",
    "format-bluetooth-muted": "󰂲 {volume}%",
    "format-muted": "󰖁 {volume}%",
    "format-headphone": "󰋋 {volume}%",
    "format-headphone-muted": "󰟎 {volume}%",
    "format-icons": {
      "default": ["󰕿", "󰖀", "󰕾"]
      },
    },
  "tray": {
    "spacing": 8
  }
}
